package com.base.cn.platform.os.service.manage.integralgood;

import com.base.cn.platform.os.entity.integralgood.IntegralExchangeRecord;
import com.base.cn.platform.os.entity.integralgood.IntegralExchangeRecordExpand;
import com.base.cn.platform.os.entity.integralgood.IntegralGood;
import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 角色与资源权限的关联Service
 *
 * @author s.li
 * @create 2018-03-06 11:44
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface IntegralExchangeRecordService extends BaseService {

     String path =contextPath+"/integralExchangeRecord/";


    /**
     *  积分兑换商品分页
     * @param currentPage
     * @param integralExchangeRecord
     * @return
     */
    @RequestMapping(path+"findListPage")
    Map findListPage(@RequestParam(value = "currentPage", required = false, defaultValue = "1") int currentPage, @RequestBody IntegralExchangeRecordExpand integralExchangeRecord);


    /**
     * 兑换商品发货
     * @param integralExchangeRecord
     */
    @RequestMapping(path+"toSendExpress")
    void toSendExpress( @RequestBody Map integralExchangeRecord);
}
